package com.njegovanobradovic.entities;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import com.njegovanobradovic.core.facade.BaseDO;

@Entity
public class Comment extends BaseDO{
	private Date date;
	private String name;
	private String eMail;
	private String message;
	private boolean active;

	private News news;
	
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String geteMail() {
		return eMail;
	}
	public void seteMail(String eMail) {
		this.eMail = eMail;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public boolean isActive() {
		return active;
	}
	public void setActive(boolean active) {
		this.active = active;
	}
	@ManyToOne
	public News getNews() {
		return news;
	}
	public void setNews(News news) {
		this.news = news;
	}
	
}
